#region Using directives
using System;
using System.Collections.Generic;
using System.Text;
using webapp4U.DAL;
#endregion


namespace webapp4U.BOL
{
	 public class Country
	 {
	     #region Member Variables

	     private Int32 _countryID;

	     private String _countryCode;

	     private String _countryName;

	     #endregion



	     #region Public Properties

	     public Int32 CountryID
	     {
		     get { return _countryID; }
		     set { _countryID = value; }
	     }

	     public String CountryCode
	     {
		     get { return _countryCode; }
		     set { _countryCode = value; }
	     }

	     public String CountryName
	     {
		     get { return _countryName; }
		     set { _countryName = value; }
	     }

	     #endregion

	     #region public static Methods

         public static int Insert(Country obj)
         {
             CountryDAL db = new CountryDAL();
             return db.Insert(obj);
         }


         public static Country GetCountryByID(Int32 CountryID)
         {
             CountryDAL db = new CountryDAL();
             return db.GetCountryByID(CountryID);
         }

	     //Get All Country
	     public static List<Country> GetAllCountry()
	     {
		     CountryDAL db = new CountryDAL();
		     return db.GetAllCountry();
	     }

	     #endregion
	 }
}
